<?php

namespace app\admin\validate\shop\user;

use think\Validate;

class User extends Validate
{
    protected $failException = true;

    /**
     * 验证规则
     */
    protected $rule = [
        'money' => 'require',
        'memo'  => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'money.require' => '请输入调整金额',
        'memo.require'  => '调整说明不能为空',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add'          => [''],
        'edit'         => ['status'],
        'edit_balance' => ['money', 'memo']
    ];

}
